-- GENERATED SPELL FOR [Clack the Reaver] --


function spell0_8301(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(16790,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8301', 2000, 1)
end

function spell1_8301(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8301', 45000, 1)
end

function Sorts_8301(pUnit, Event)
local choix_sorts_8301 = math.random(0, 1)
if choix_sorts_8301 == 0 then
pUnit:RegisterEvent('spell0_8301', 1, 1)
end
if choix_sorts_8301 == 1 then
pUnit:RegisterEvent('spell1_8301', 1, 1)
end
end

function mob8301_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8301', math.random(1500, 3000), 1)
end

function mob8301_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8301_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8301_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8301, 1, 'mob8301_Action')
RegisterUnitEvent(8301, 2, 'mob8301_Leave')
RegisterUnitEvent(8301, 3, 'mob8301_Kill')
RegisterUnitEvent(8301, 4, 'mob8301_Die')
